package com.example.jh352160.surfingtv.starsight.customView.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

import java.util.List;

/**
 * Created by jh352160 on 2016/7/21
 */

public class StarsightAdapter extends ArrayAdapter<View> {

    //List<Integer> images;
    private List<View> viewList = null;
    //Context context;

//    public StarsightAdapter(Context context, int resource, List<Integer> images) {
//        super(context, resource, images);
//        this.images=images;
//        this.context=context;
//    }

    public StarsightAdapter(Context context, int resource, List<View> viewList) {
        super(context, resource, viewList);
        this.viewList = viewList;
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, @NonNull ViewGroup parent) {
//        StarsightImage item=new StarsightImage(context);
//        item.setImage(images.get(position));
        return viewList.get(position);
    }
}
